﻿@{
    ViewBag.Title = "帖子详情";
    Layout = "~/Views/Shared/_LayoutPage1.cshtml";
}


<h4>@Model.Content</h4>
<br />
@Model.Users.UserName  发表于 @Model.CreateTime
<br />
    <a href="/Articles/Zan/@Model.ID?act=Detail/@Model.ID&ctrl=Articles">赞<img src="~/img/tzan.png" /></a>:@Model.Zan  人 &nbsp;
    <a href="/Articles/Cai/@Model.ID">踩<img src="~/img/tcai.png" /></a>:@Model.Cai  人&nbsp;
    浏览<img src="~/img/tshua.png" />:@Model.Dian  人&nbsp;
    评论<img src="~/img/tping.png" />:@ViewBag.pingluns.Count 人&nbsp;
<hr /><br />
<h4>评论:</h4>
<ul>
    @foreach (Model.Pingluns item in ViewBag.pingluns)
    {
        <li>@item.Content [ @item.Users.UserName 发表于 @item.CreateTime  ]</li>
    }
</ul>
<hr />发表评论:<br />
<form action="/Articles/AddPinglun" method="post">
    <input type="hidden" id="ArticleId"  name="ArticleId" value="@Model.ID"/>
    <input type="text"  id="Content" name="Content" style="width:400px;height:30px" />
    <br /><input type="submit" value="发表评论" />

</form>
<div style="color: red">@TempData["msg"]</div>